//
//  HHAccessoryView.h
//  Pods
//
//  Created by Basic. on 2018/6/13.
//  输入框，键盘上方工具view

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class HHAccessoryView;
@protocol HHAccessoryViewDelegate <NSObject>
@optional
/// 选择按钮事件
- (void)HHAccessoryView:(HHAccessoryView *)view didSelectedMenu:(NSInteger )index;
@end

@interface HHAccessoryView : UIView
/// 是否显示顶部分割线，默认NO 不显示
@property (nonatomic, assign) BOOL showTopSplit;
/// 是否显示分割线，默认NO 不显示
@property (nonatomic, assign) BOOL showBottomSplit;
/// delegate
@property (nonatomic, weak, nullable) id<HHAccessoryViewDelegate> delegate;
/// 扩展数据
@property (nonatomic, strong, nullable) id extData;
/// 取消按钮，默认显示
@property (nonatomic, strong, readonly, nullable) UIButton *cancelButton;
/// 完成按钮，默认显示
@property (nonatomic, strong, readonly, nullable) UIButton *doneButton;
/// 分割线，默认nil，不显示
@property (nonatomic, strong, readonly, nullable) UILabel *splitLb;

//MARK: - Event
/// 设置CancelButton、DoneButton按钮点击事件
/// @param clickAction 事件action
- (void)setMenuClickAction:(void(^_Nullable)(HHAccessoryView *view, NSInteger menuIndex) )clickAction;
@end

NS_ASSUME_NONNULL_END
